﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace ManagementApi.TreeParty.SMS.LianXinTong;

/// <summary>
/// 上行短信接口请求参数
/// </summary>
public class DELIVER_REQ
{
    /// <summary>
    /// 上行内容，最长70位
    /// </summary>
    [JsonProperty("content")]
    [Display(Name = "上行内容")]
    [Required(ErrorMessage = "{0}不能为空")]
    [MaxLength(70)]
    public string Content { get; set; }
    /// <summary>
    /// 长号（基础号+扩展码），最长20位
    /// </summary>
    [JsonProperty("destId")]
    [MaxLength(20)]
    [Display(Name = "长号")]
    [Required(ErrorMessage = "{0}不能为空")]
    public string DestId { get; set; }
    /// <summary>
    /// 手机号码，手机号码，最长20位
    /// </summary>
    [JsonProperty("mobile")]
    [MaxLength(20)]
    [Display(Name = "手机号码")]
    [Required(ErrorMessage = "{0}不能为空")]
    public string Mobile { get; set; }
    /// <summary>
    /// 消息流水号，不为空
    /// </summary>
    [JsonProperty("reqId")]
    [Display(Name = "消息流水号")]
    [Required(ErrorMessage = "{0}不能为空")]
    public string ReqId { get; set; }
}
